using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

public class Game : Microsoft.Xna.Framework.Game
{
    public GraphicsDeviceManager graphics;
    SpriteBatch spriteBatch;
    ScreenManager screenManager;

    public const int ScreenWidth = 1280;
    public const int ScreenHeight = 720;

    public Game()
    {
        graphics = new GraphicsDeviceManager(this);
        graphics.PreferredBackBufferWidth = ScreenWidth;
        graphics.PreferredBackBufferHeight = ScreenHeight;
        //graphics.IsFullScreen = true;

        //graphics.ToggleFullScreen();

        Content.RootDirectory = "Content";

        AudioManager.Initialize(this);

        screenManager = new ScreenManager(this);
        Components.Add(screenManager);
    }

    protected override void Initialize()
    {
        InputManager.Initialize();

        base.Initialize();

        //screenManager.AddScreen(new GameplayScreen(PlayerAndChar.CHARACHARB));
        screenManager.AddScreen(new VideoScreen("inicio", VideoKind.INTROVIDEO));
    }

    protected override void LoadContent()
    {
        spriteBatch = new SpriteBatch(GraphicsDevice);
    }

    protected override void UnloadContent()
    {
        Content.Unload();
    }

    protected override void Update(GameTime gameTime)
    {
        InputManager.Update();

        base.Update(gameTime);
    }

    protected override void Draw(GameTime gameTime)
    {
        graphics.GraphicsDevice.Clear(Color.TransparentBlack);

        base.Draw(gameTime);
    }
}

